package String;

public class 路径加密 {
    public String pathEncryption(String path) {
        char[] c = path.toCharArray();
        int l = 0;
        int r = c.length - 1;
        while (l <= r) {
            if (c[l] == '.') c[l] = ' ';
            if (c[r] == '.') c[r] = ' ';
            l++;
            r--;
        }
        return new String(c);
    }
}
